//
//  OosUserQuery.m
//  oos4ios
//
//  Created by Pablo Gonzalez on 4/12/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosUserQuery.h"
#import <oos4ios/ApiUrlProvider.h>


@implementation OosUserQuery

+ (OosUserQuery *)queryFromUserSlug:(NSString *)slug
{
    NSString *urlString = [[ApiUrlProvider provider].users getUrl:slug, nil];
    NSURL *url = [NSURL URLWithString:urlString];
    OosUserQuery *query = [[OosUserQuery alloc] initWithFeedURL:url];
    return [query autorelease];
}

+ (OosUserQuery *) queryFromMe
{
    NSString *urlString = [ApiUrlProvider provider].users.url;
    NSURL *url = [NSURL URLWithString:urlString];
    OosUserQuery *query = [[OosUserQuery alloc] initWithFeedURL:url];
    return [query autorelease];
}

@end
